
import br.com.nooclix.salon.ui.util.WindowsMessage;

import mx.messaging.FlexClient;
import mx.olap.aggregators.MinAggregator;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;


public function welcome():String{
	var date:Date = new Date();
	var message:String = "";
	
	if(date.getHours() < 12){
		message = "bom dia! ";	
	}else if(date.getHours() < 18) {
		message = "boa tarde! ";
	}else{
		message = "boa noite! ";
	}
	
	return message;
}

public function fault(event:FaultEvent):void{
	WindowsMessage.error(event.message.toString());
}